package com.bw.module_login.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.Res
import com.bw.lib_common.entity.UserEntity
import com.bw.lib_http.Const
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * Author: Jason Zhang
 * Date: 2025/4/22
 * Desc:
 */
interface LoginApiServer: BaseApiServer {
    @POST(Const.LOGIN_URL)
    suspend fun loginToServer(@Query("password")password:String, @Query("username")username:String):Res<UserEntity>

    @POST(Const.REGISTER_URL)
    suspend fun registerToServer(@Query("password")password:String, @Query("username")username:String): Res<UserEntity>

}